package com.wuyanyidui.dao;

import com.wuyanyidui.domain.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    //通过名字找
    public User findUserByUserName(String username);
    //通过id找
    public User findUserByUserId(int id);
    //增
    public void addUser(User user);
    //删
    public void deleteUserByUserName(String username);
    //更新
    public void updateUserByUserName(User user);
    //查密码
    public String getUserPasswordByUserName(String username);
    //列
    public List<User> getAllUserInfo();
}
